




//
//  NewsCell.m
//  ZQLearn
//
//  Created by admin on 2019/4/19.
//  Copyright © 2019 admin. All rights reserved.
//

#import "NewsCell.h"

@implementation NewsCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.selectionStyle = 0;
    // Initialization code
}

- (void)configCellWithData:(NewsModel *)model{
    [self.img sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",kPicServerUrl,model.photo]] placeholderImage:nil];
    self.titleLab.text = model.title;
    self.timeLab.text = model.updateTime;
    self.countLab.text = [NSString stringWithFormat:@"%ld",(long)model.browseNumber];
    
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
